gtk-update-icon-cache: Add an --include-image-data option
authorMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jun 2014 23:30:17 +0000 (19:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jun 2014 23:30:17 +0000 (19:30 -0400)
Now that we don't include the image data by default anymore,
lets add an option that  does it.

docs/reference/gtk/gtk-update-icon-cache.xml
gtk/updateiconcache.c

index 239a899f8ddf4f9ea3f78b5ed4830ae318c752e9..9c46b5a70dc364ace290f683745f8d5f1aaf82f5 100644 (file)
 <command>gtk-update-icon-cache</command>
 <arg choice="opt">--force</arg>
 <arg choice="opt">--ignore-theme-index</arg>
-<arg choice="opt">--index-only</arg>
+<group>
+  <arg choice="plain">--index-only</arg>
+  <arg choice="plain">--include-image-data</arg>
+</group>
 <arg choice="opt">--source <arg choice="plain"><replaceable>NAME</replaceable></arg></arg>
 <arg choice="opt">--quiet</arg>
 <arg choice="opt">--validate</arg>
     </para></listitem>
   </varlistentry>
 
+  <varlistentry>
+    <term>--include-image-data</term>
+    <listitem><para>Include image data in the cache.
+    </para></listitem>
+  </varlistentry>
+
   <varlistentry>
     <term>--source</term>
     <term>-c</term>
index 36b915817c067be720756cf4a98f16b86a24b045..c0fb7302e19bae65105117656bc10f0a230f4bb4 100644 (file)
@@ -1652,6 +1652,7 @@ static GOptionEntry args[] = {
   { "force", 'f', 0, G_OPTION_ARG_NONE, &force_update, N_("Overwrite an existing cache, even if up to date"), NULL },
   { "ignore-theme-index", 't', 0, G_OPTION_ARG_NONE, &ignore_theme_index, N_("Don't check for the existence of index.theme"), NULL },
   { "index-only", 'i', 0, G_OPTION_ARG_NONE, &index_only, N_("Don't include image data in the cache"), NULL },
+  { "include-image-data", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &index_only, N_("Include image data in the cache"), NULL },
   { "source", 'c', 0, G_OPTION_ARG_STRING, &var_name, N_("Output a C header file"), "NAME" },
   { "quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet, N_("Turn off verbose output"), NULL },
   { "validate", 'v', 0, G_OPTION_ARG_NONE, &validate, N_("Validate existing icon cache"), NULL },